/**
 * Created by WLG on 2018/11/12.
 */
const mongoose = require('mongoose');
const redisDB = require('../lib/redisManage');
let Account = mongoose.model('Account');
/**
 * 账户服务
 */
class AccountService{
    static async loadAccount(account){
        return await Account.find(account).exec();
    }
    static async saveAccount(account){
        let item = new Account(account);
        item.save();
    }
}

module.exports = AccountService;